package com.yangxf.l_group02;

import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.DelegateTask;
import org.activiti.engine.delegate.ExecutionListener;
import org.activiti.engine.delegate.TaskListener;

public class TaskListenerImpl implements TaskListener,ExecutionListener {

	private static final long serialVersionUID = -855491497670027717L;

	//指定任务办理人
	public void notify(DelegateTask delegateTask) {
//		delegateTask.setAssignee("小猪佩奇社会人");
		
		//组任务：
		delegateTask.addCandidateUser("郭靖");
		delegateTask.addCandidateUser("黄蓉");
		delegateTask.addCandidateUser("杨过");
	}

	@Override
	public void notify(DelegateExecution execution) throws Exception {
		// TODO Auto-generated method stub
		
	}
}
